//重构Ajax;url--请求地址，data--请求数据json对象，type--请求方式类型
let URL = 'http://localhost:8080/';

function myAjax(url, data, type) {
    let aa = null;//
    $.ajax({
        url: URL + url,
        type: type,
        dataType: 'json',
        async: false,
        data: data,
        success: function (data) {
            aa = data;
        }
    });
    return aa;
}

function myCode(url) {
    return URL + url;
}
